package com.feng.study.value;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.feng.study.aspect.EnumDict;
import com.feng.study.config.jackson.BigDecimalJsonSerializer;
import com.feng.study.enum1.DepositStatusEnum;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * @Author: Zeng ShaoYong
 * @Date: 2021-09-02
 * @Description:
 */
@ApiModel(
        value = "User",
        description = "json输出数据格式"
)
@Data
@Accessors(chain = true)
public class User {
    private Integer age;
    private String name;
    private String gender;

    private Enum anEnu;

    @JsonSerialize(using = BigDecimalJsonSerializer.class)
    private BigDecimal price;
    @EnumDict(enumType = DepositStatusEnum.class)
    private String depositStatusCode;
}

